﻿#include "SerialThread.h"
#include <qdebug.h>
#include <QSerialPortInfo>

SerialThread::SerialThread(QObject *parent, QString m_PortName, int m_BaudRateIndex, int m_ParityIndex, int m_DataBitsIndex, int m_StopBitsIndex)
	: QThread(parent), m_PortName(m_PortName), m_BaudRateIndex(m_BaudRateIndex), m_ParityIndex(m_ParityIndex), m_DataBitsIndex(m_DataBitsIndex), m_StopBitsIndex(m_StopBitsIndex)
{

}

SerialThread::~SerialThread()
{

}

void SerialThread::run() {
	//printf("in SerialThread run");
	/*qDebug() << "in SerialThread run";
	QList<QSerialPortInfo> serialList=QSerialPortInfo::availablePorts();
	for (const QSerialPortInfo & s: serialList) {
		qDebug() << "port name : "<<s.portName();
	}*/
}
